const express=require("express");
const router=express.Router();  //创建路由对象

router.get("/",(req,res,next)=>{
    res.render("stu",{"title":"学生管理","msg":""});
});

router.post("/",(req,res,next)=>{
    let stu=req.body;
    res.render("stu",{"title":"学生管理","msg":stu.name+","+stu.sex});
});

module.exports=router;